{% extends "base_generic.html" %}
{% load i18n %}

{% block content %}
  <h1>{% trans "Renew" %}: {{bookinst.book.title}}</h1>
  <p>{% trans "Borrower" %}: {{bookinst.borrower}}</p>
  <p{% if bookinst.is_overdue %} class="text-danger"{% endif %}>{% trans "Due date" %}: {{bookinst.due_back}}</p>
  <p>当前语言：{{ LANGUAGE_CODE }}</p>

  <form action="" method="post">
    {% csrf_token %}
    <table>
      {{ form }}
    </table>
    <input type="submit" value="{% trans 'Submit' %}" />
  </form>
{% endblock %}
